
import { rule } from "@/util/validateRules";
export const tableOption = {
  border: true,

  stripe: true,
  menuAlign: 'center',
  searchMenuSpan: 5,
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  viewBtn: false,
  labelWidth: 120,
  menuWidth: 280,
  // props: {
  //   label: 'name',
  //   value: 'code'
  // },
  column: [{
    label: '分类编号',
    prop: 'Code',
    span: 24,
    rules: [
      { required: true, message: '分类编号不能为空', trigger: 'blur' }
    ]
  },{
    // showColumn: false,
    
    label: "所属大类",
    prop: "ParentName",
    type: "select",
    span: 8,

    // cascader: ['bCode', 'cCode'],
    // cascaderFirst: true,
    // dicUrl: getCategoryType(0),
    //dicData: 'ParentId',
    
    rules: [
      { required: true, message: '所属大类不能为空', trigger: 'blur' }
    ],
  }, {
    hide: true,
    showColumn: false,
    label: "",
    prop: "bCode",
    type: "select",
    span: 8,
    //dicFlag: false,
    // dicUrl: getCategoryType(code),
    //dicData: 'bCode',
    // rules: [
    //   { required: true, message: '所属大类不能为空', trigger: 'blur' }
    // ],
  },
  {
    hide: true,
    showColumn: false,
    label: "",
    prop: "cCode",
    type: "select",
    span: 8,
    //dicFlag: false,
    // dicUrl: getCategoryType({{code}}),
    // dicData: 'cCode',
    // search:true,
    // searchslot:true,
    /*    rules: [
         { required: true, message: '所属大类不能为空', trigger: 'blur' }
       ], */
  }, {
    label: '分类名称',
    prop: 'Name',
    span: 24,
    // search: true,

    rules: [
      { required: true, message: '分类名称不能为空', trigger: 'blur' }
    ]
  },
   
  ]
}
